<table>
	<caption><g:message code="moc.tb.id.label" default="Id" />:${fieldValue(bean: tbInstance, field: "id")}</caption>
    <tbody>
    
        <tr class="prop">
            <td class="name"><g:message code="moc.tb.tb001.label" default="Tb001" /></td>
            <td class="value">${fieldValue(bean: tbInstance, field: "tb001")}</td>
            <td class="name"><g:message code="moc.tb.orderDate.label" default="Order Date" /></td>
            <td class="value"><g:formatDate format="yyyy-MM-dd" date="${tbInstance?.orderDate}" /></td>
            <td class="name"><g:message code="moc.tb.status.label" default="Status" /></td>
            <td class="value">${fieldValue(bean: tbInstance, field: "status")}</td>
        </tr>
        
        <tr class="prop">
            <td class="name"><g:message code="moc.tb.beginDate.label" default="Begin Date" /></td>
            <td class="value"><g:formatDate format="yyyy-MM-dd" date="${tbInstance?.beginDate}" /></td>
            <td class="name"><g:message code="moc.tb.endDate.label" default="End Date" /></td>
            <td class="value"><g:formatDate format="yyyy-MM-dd" date="${tbInstance?.endDate}" /></td>
            <td class="name"><g:message code="moc.tb.tb010.label" default="Tb010" /></td>
            <td class="value">${fieldValue(bean: tbInstance, field: "tb010")}</td>
        </tr>
        
        <tr class="prop">
            <td class="name"><g:message code="moc.tb.tb002.label" default="Tb002" /></td>
            <td class="value">${fieldValue(bean: tbInstance, field: "tb002")}</td>
            <td class="name"><g:message code="moc.tb.tb008.label" default="Tb008" /></td>
            <td class="value">${fieldValue(bean: tbInstance, field: "tb008")}</td>
            <td class="name"><g:message code="moc.tb.tb003.label" default="Tb003" /></td>
            <td class="value">${fieldValue(bean: tbInstance, field: "tb003")}</td>
        </tr>
        
        <tr class="prop">
            <td class="name"><g:message code="moc.tb.tb009.label" default="Tb009" /></td>
            <td class="value">${formatNumber(number : tbInstance.tb009, format: '###,##0.000000')}</td>
            <td class="name"><g:message code="moc.tb.tb011.label" default="Tb011" /></td>
            <td class="value">${fieldValue(bean: tbInstance, field: "tb011")}</td>
            <td class="name"><g:message code="moc.tb.tb012.label" default="Tb012" /></td>
            <td class="value" id="tb012">${fieldValue(bean: tbInstance, field: "tb012")}</td>
        </tr>

        <tr class="prop">
            <td class="name"><g:message code="moc.tb.tb004.label" default="Tb004" /></td>
            <td class="value">${fieldValue(bean: tbInstance, field: "tb004")}</td>
            <td class="name"><g:message code="moc.tb.tb005.label" default="Tb005" /></td>
            <td class="value">${fieldValue(bean: tbInstance, field: "tb005")}</td>
            <td class="name"><g:message code="moc.tb.tb006.label" default="Tb006" /></td>
            <td class="value" id="tb006">${fieldValue(bean: tbInstance, field: "tb006")}</td>
        </tr>
        
        <tr class="prop">
            <td class="name"><g:message code="moc.tb.tb007.label" default="tb007" /></td>
            <td class="value" id="tb007">${tbInstance?.tcs*.tc002.sum()}</td>
            <td class="name">&nbsp;</td>
            <td class="value">&nbsp;</td>
            <td class="name">&nbsp;</td>
            <td class="value">&nbsp;</td>
        </tr>
        
        <tr class="prop">
            <td class="name"><g:message code="moc.tb.owner.label" default="Owner" /></td>
            <td class="value"><g:link controller="user" action="show" id="${tbInstance?.owner?.id}">${tbInstance?.owner?.username.encodeAsHTML()}</g:link></td>
            <td class="name"><g:message code="moc.tb.createdBy.label" default="Created By" /></td>
            <td class="value">
            	<g:link controller="user" action="show" id="${tbInstance?.createdBy?.id}">
            		${tbInstance?.createdBy?.username.encodeAsHTML()},
            		<g:formatDate format="yyyy-MM-dd HH:mm:ss" date="${tbInstance?.dateCreated}" />
            	</g:link>
            </td>
            <td class="name"><g:message code="moc.tb.lastModifiedBy.label" default="Last Modified By" /></td>
            <td class="value">
            	<g:link controller="user" action="show" id="${tbInstance?.lastModifiedBy?.id}">
            		${tbInstance?.lastModifiedBy?.username.encodeAsHTML()},
            		<g:formatDate format="yyyy-MM-dd HH:mm:ss" date="${tbInstance?.lastUpdated}" />
            	</g:link>
            </td>
        </tr>               
        
    </tbody>
</table>
